using UnityEngine;
using System.Collections;

public class scoreScript : MonoBehaviour {

    private GameObject ship;
    public float score;
    public float attractNumber;

	void Start () {

       ship = GameObject.Find("ship");
	}


    void Update()
    {
        shipControllerScript shipScript = ship.GetComponent<shipControllerScript>();
        score = shipScript.score;
        attractNumber = shipScript.attractNumber;
        string format = System.String.Format("{0}", score);
        guiText.text = format;
        
	}
}